import request from '@/utils/request_origin'

// 获取数据table
export const getDataApi = (params: any) => {
    return request({
        url: '/coordinate/converter/list',
        method: 'get',
        params
    })
};


// 编辑
export const editApi = (data: any) => {
    return request({
        url: '/coordinate/converter/edit',
        method: 'put',
        data
    })
};

// del
export const delApi = (id: string) => {
    return request({
        url: '/coordinate/converter/delete',
        method: 'DELETE',
        data: { id }
    })
};

// export
export const exportApi = () => {
    return request({
        url: '/coordinate/converter/exportXls',
        method: 'get',
    })
};